/**
 * Copyright 2007-2008. Chongqing First Information & Network Co., Ltd. All
 * rights reserved. <a>http://www.cqfirst.com.cn</a>
 */
package com.cqcis.uip.base.filelog.log.dao;

import org.springframework.jdbc.core.support.JdbcDaoSupport;

import com.cqcis.uip.base.framework.utils.JdbcUtil;

/**
 * @author huangmy
 * @date   2007-12-21
 */
public class InterfaceIdDao extends JdbcDaoSupport {
	private static String getInterfaceIdSql = "select interface_id "
		+ "from tin_tache_relation where tache_id = ? and state=1";
	
	public String getInterfaceId(final String tacheId) {
		return (String)JdbcUtil.queryForObject(this, String.class, getInterfaceIdSql, tacheId);
	}
}
